<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<div class="header" id="home">
	<nav class="navbar navbar-default">
		<div class="container">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"
					aria-expanded="false">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span> <span
						class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="index.html"><h1>Stunning</h1> <br />
					<span>Traveling</span></a>
			</div>
			<!-- Collect the nav links, forms, and other content for toggling -->


			<c:if test="${user==null}">
				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right margin-top cl-effect-2">

						<li><a href="ToIndexServet"><span data-hover="Home">首页</span></a></li>
						<li><a href="SelectSceneryServlet?op=select3"><span
								data-hover="Travel Information">旅游攻略</span></a></li>
						<li><a href="register.jsp"><span
								data-hover="Free Registration">用户注册</span></a></li>
						<li><a href="login.jsp"><span
								data-hover="Free Registration">登录</span></a></li>
					</ul>
					<div class="clearfix"></div>
				</div>
			</c:if>

			<c:if test="${user!=null&&user.userJurisdiction==0}">
				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right margin-top cl-effect-2">
						<li><a href="ToIndexServet"><span data-hover="Home">首页</span></a></li>
						<li><a href="SelectSceneryServlet?op=select3"><span
								data-hover="Travel Information">旅游资讯</span></a></li>
						<li><a href="#"><span data-hover="Free Registration">欢迎${user.userName }</span></a></li>
						<li><a href="update.jsp"><span
								data-hover="Free Registration">修改个人信息</span></a></li>

						<li><a href="UserLogoutServlet"><span
								data-hover="Free Registration">退出</span></a></li>
					</ul>
					<div class="clearfix"></div>
				</div>
			</c:if>
			<c:if test="${user!=null&&user.userJurisdiction==1}">
				<div class="collapse navbar-collapse"
					id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav navbar-right margin-top cl-effect-2">
						<li><a href="ToIndexServet"><span data-hover="Home">首页</span></a></li>
						<li><a href="SelectSceneryServlet?op=select3"><span
								data-hover="Travel Information">旅游资讯</span></a></li>
						<li><a href="#"><span data-hover="Free Registration">欢迎${user.userName }</span></a></li>
						<li><a href="update.jsp"><span
								data-hover="Free Registration">修改个人信息</span></a></li>
						<li><a href="gallery.jsp"><span
								data-hover="Food & Delights">商家 </span></a></li>
						<li><a href="UserLogoutServlet"><span
								data-hover="Free Registration">退出</span></a></li>
					</ul>
					<div class="clearfix"></div>
				</div>
			</c:if>

			<!-- /.navbar-collapse -->
			<div class="clearfix"></div>
		</div>
		<!-- /container-fluid -->
	</nav>